[INFO] cloning repository https://github.com/el0i404/array_manipulator
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/el0i404/array_manipulator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fel0i404%2Farray_manipulator", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fel0i404%2Farray_manipulator'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 0a46207baed64e2cfea3335f942908c5dff71fe6
[INFO] fixing el0i404/array_manipulator against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fel0i404%2Farray_manipulator" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/el0i404/array_manipulator
[INFO] finished tweaking git repo https://github.com/el0i404/array_manipulator
[INFO] tweaked toml for git repo https://github.com/el0i404/array_manipulator written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/el0i404/array_manipulator on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/el0i404/array_manipulator already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] c2bce21193b905df46df160169167a805723259a2eee10c51e6a80da26b49fb6
[INFO] running `Command { std: "docker" "start" "c2bce21193b905df46df160169167a805723259a2eee10c51e6a80da26b49fb6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "c2bce21193b905df46df160169167a805723259a2eee10c51e6a80da26b49fb6" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c2bce21193b905df46df160169167a805723259a2eee10c51e6a80da26b49fb6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "c2bce21193b905df46df160169167a805723259a2eee10c51e6a80da26b49fb6" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]     Checking array_manipulator v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0277]: cannot add-assign `&f64` to `{integer}`
[INFO] [stdout]    --> src/main.rs:115:42
[INFO] [stdout]     |
[INFO] [stdout] 115 |     data.iter().clone().for_each(|x| acc += x as &f64);
[INFO] [stdout]     |                                          ^^ no implementation for `{integer} += &f64`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `AddAssign<&f64>` is not implemented for `{integer}`
[INFO] [stdout]     = help: the following other types implement trait `AddAssign<Rhs>`:
[INFO] [stdout]               `f128` implements `AddAssign<&f128>`
[INFO] [stdout]               `f128` implements `AddAssign`
[INFO] [stdout]               `f16` implements `AddAssign<&f16>`
[INFO] [stdout]               `f16` implements `AddAssign`
[INFO] [stdout]               `f32` implements `AddAssign<&f32>`
[INFO] [stdout]               `f32` implements `AddAssign`
[INFO] [stdout]               `f64` implements `AddAssign<&f64>`
[INFO] [stdout]               `f64` implements `AddAssign`
[INFO] [stdout]             and 24 others
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0605]: non-primitive cast: `&i32` as `&f64`
[INFO] [stdout]    --> src/main.rs:115:45
[INFO] [stdout]     |
[INFO] [stdout] 115 |     data.iter().clone().for_each(|x| acc += x as &f64);
[INFO] [stdout]     |                                             ^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data`
[INFO] [stdout]   --> src/main.rs:65:22
[INFO] [stdout]    |
[INFO] [stdout] 65 | fn calculate_average(data: &[i32]) -> f64 {
[INFO] [stdout]    |                      ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data`
[INFO] [stdout]    --> src/main.rs:104:24
[INFO] [stdout]     |
[INFO] [stdout] 104 | fn find_second_largest(data: &[i32]) -> Option<i32> {
[INFO] [stdout]     |                        ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data`
[INFO] [stdout]    --> src/main.rs:122:18
[INFO] [stdout]     |
[INFO] [stdout] 122 | fn find_subslice(data: &[i32], pattern: &[i32]) -> Option<usize> {
[INFO] [stdout]     |                  ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pattern`
[INFO] [stdout]    --> src/main.rs:122:32
[INFO] [stdout]     |
[INFO] [stdout] 122 | fn find_subslice(data: &[i32], pattern: &[i32]) -> Option<usize> {
[INFO] [stdout]     |                                ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pattern`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0605.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: cannot add-assign `&f64` to `{integer}`
[INFO] [stdout]    --> src/main.rs:115:42
[INFO] [stdout]     |
[INFO] [stdout] 115 |     data.iter().clone().for_each(|x| acc += x as &f64);
[INFO] [stdout]     |                                          ^^ no implementation for `{integer} += &f64`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `AddAssign<&f64>` is not implemented for `{integer}`
[INFO] [stdout]     = help: the following other types implement trait `AddAssign<Rhs>`:
[INFO] [stdout]               `f128` implements `AddAssign<&f128>`
[INFO] [stdout]               `f128` implements `AddAssign`
[INFO] [stdout]               `f16` implements `AddAssign<&f16>`
[INFO] [stdout]               `f16` implements `AddAssign`
[INFO] [stdout]               `f32` implements `AddAssign<&f32>`
[INFO] [stdout]               `f32` implements `AddAssign`
[INFO] [stdout]               `f64` implements `AddAssign<&f64>`
[INFO] [stdout]               `f64` implements `AddAssign`
[INFO] [stdout]             and 24 others
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0605]: non-primitive cast: `&i32` as `&f64`
[INFO] [stdout]    --> src/main.rs:115:45
[INFO] [stdout]     |
[INFO] [stdout] 115 |     data.iter().clone().for_each(|x| acc += x as &f64);
[INFO] [stdout]     |                                             ^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data`
[INFO] [stdout]   --> src/main.rs:65:22
[INFO] [stdout]    |
[INFO] [stdout] 65 | fn calculate_average(data: &[i32]) -> f64 {
[INFO] [stdout]    |                      ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data`
[INFO] [stdout]    --> src/main.rs:104:24
[INFO] [stdout]     |
[INFO] [stdout] 104 | fn find_second_largest(data: &[i32]) -> Option<i32> {
[INFO] [stdout]     |                        ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data`
[INFO] [stdout]    --> src/main.rs:122:18
[INFO] [stdout]     |
[INFO] [stdout] 122 | fn find_subslice(data: &[i32], pattern: &[i32]) -> Option<usize> {
[INFO] [stdout]     |                  ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pattern`
[INFO] [stdout]    --> src/main.rs:122:32
[INFO] [stdout]     |
[INFO] [stdout] 122 | fn find_subslice(data: &[i32], pattern: &[i32]) -> Option<usize> {
[INFO] [stdout]     |                                ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pattern`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0605.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `array_manipulator` (bin "array_manipulator" test) due to 2 previous errors; 4 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `array_manipulator` (bin "array_manipulator") due to 2 previous errors; 4 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "c2bce21193b905df46df160169167a805723259a2eee10c51e6a80da26b49fb6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c2bce21193b905df46df160169167a805723259a2eee10c51e6a80da26b49fb6", kill_on_drop: false }`
[INFO] [stdout] c2bce21193b905df46df160169167a805723259a2eee10c51e6a80da26b49fb6
